
package com.be.beadmin.device.repository;

import com.be.beadmin.device.entity.MaintenanceInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
* @author zty
* @date 2023-08-01
**/
public interface MaintenanceInfoRepository extends JpaRepository<MaintenanceInfo, String>, JpaSpecificationExecutor<MaintenanceInfo> {

    MaintenanceInfo findMaintenanceInfoByIdAndDelete(String id, Integer delete);

    MaintenanceInfo findMaintenanceInfoById(String id);

    MaintenanceInfo findMaintenanceInfoByIdentificationAndDelete(String identification, Integer delete);

    MaintenanceInfo findMaintenanceInfoByCreateNameAndDelete(String creatName, Integer delete);

    MaintenanceInfo findMaintenanceInfoByAssignedToAndDelete(String assignedTo, Integer delete);

    MaintenanceInfo findMaintenanceInfoByAssignedToAndStateAndDelete(String assignedTo, String state, Integer delete);
}